﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using BathhouseService.Models.SqlModels;


namespace BathhouseService.CURD.ViewModels.ServiceRecordVMs
{
    public partial class ServiceRecordSearcher : BaseSearcher
    {
        [Display(Name = "订单号")]
        public String OrderId { get; set; }
        public List<ComboSelectListItem> AllValueAddedServicess { get; set; }
        [Display(Name = "使用服务")]
        public int? ValueAddedServicesId { get; set; }
        [Display(Name = "服务人姓名")]
        public String ServicePersonName { get; set; }
        [Display(Name = "客户姓名")]
        public String CustomerName { get; set; }
        [Display(Name = "支付时间")]
        public DateRange PaymentTime { get; set; }

        protected override void InitVM()
        {
            AllValueAddedServicess = DC.Set<ValueAddedServices>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.Names);
        }

    }
}
